const mongoose = require('mongoose');

const dataSchema = new mongoose.Schema({
  date: {
    type: Date,
    // default: Date.now,
    default: Date.now() + 8 * 60 * 60 * 1000,
    required: true,
  },
  content: {
    type: String,
    required: true,
  },
  income: {
    type: Number,
  },
  expend: {
    type: Number,
  },
  remark: {
    type: String,
  },
})

const Data = mongoose.model('Data', dataSchema);

module.exports = Data;